package com.goktech.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户实体类
 * </p>
 *
 * @author 初茶
 * @since 2023-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user")
@ApiModel(value="User对象", description="用户实体类")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonProperty("uId")
    @ApiModelProperty(value = "用户主键")
    @TableId(value = "u_id", type = IdType.AUTO)
    private Long uId;

    @JsonProperty("sId")
    @ApiModelProperty(value = "购物车主键")
    private Integer sId;

    @JsonProperty("uUsername")
    @ApiModelProperty(value = "用户昵称")
    private String uUsername;

    @JsonProperty("uPassword")
    @ApiModelProperty(value = "用户密码")
    private String uPassword;

    @JsonProperty("uName")
    @ApiModelProperty(value = "用户姓名")
    private String uName;

    @JsonProperty("uPhone")
    @ApiModelProperty(value = "手机号码")
    private String uPhone;

    @JsonProperty("uBirthday")
    @ApiModelProperty(value = "用户生日")
    private String uBirthday;

    @JsonProperty("uSex")
    @ApiModelProperty(value = "用户性别")
    private String uSex;

    @JsonProperty("uImg")
    @ApiModelProperty(value = "用户头像地址")
    private String uImg;

    @JsonProperty("uCategory")
    @ApiModelProperty(value = "0为普通身份，1为管理员")
    private Integer uCategory;

    @JsonProperty("uArea")
    @ApiModelProperty(value = "账号地区")
    private String uArea;


}
